package com.project.nimsen.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.project.nimsen.dao.IBaseDao;
import com.project.nimsen.entity.Filearchivrelation;
import com.project.nimsen.service.IFilearchivrelationService;
import com.project.jdbc.dao.IBaseJdbcDao;
import com.project.jdbc.service.BaseServiceImpl;
import com.project.jdbc.utils.Finder;
@Repository("filearchivrelationService")
public class FilearchivrelationServiceImpl extends BaseServiceImpl implements IFilearchivrelationService {
	@Resource
	IBaseDao baseDao;
	protected IBaseJdbcDao getBaseDao() {
		return baseDao;
	}
	public Filearchivrelation findByValue(String value) throws Exception {
		Finder finder = new Finder("SELECT id,relationame,relationvalue,createUser,"
			+ "createTime,active FROM filearchivrelation where active!=1 "
			+ "and relationvalue=:value");
		finder.setParam("value", value);
		return baseDao.queryForObject(finder, Filearchivrelation.class);
	}
}
